<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Asterisk AMI test</title>
    </head>
    <body>
 <?php
 
 require_once 'asterisk.php';
 $Man = new AsteriskManager(); 
 if ($Man->Login("192.168.57.148"))
 {
 echo $Man->SendCommand("Action: Ping\r\n\r\n");

 }
 else
 {
 echo "Error : ".$Man->GetError();
 echo "<br>Check your params in etc/asterisk/manager.conf";
 echo "<br> enabled = <b>true</b>";
 echo "<br> permit = <i>your_host_ip</i>";
 }
 ?>
 
  </body>
</html>